﻿using AIO.Entity;
using AIO.Entity.Base;
using AIO.IService;
using AIO.Service.Base;
using Microsoft.EntityFrameworkCore;

namespace AIO.Service
{
    public class PayInfoRepository : BaseRepository<PayInfo>, IPayInfoRepository
    {
        protected ApiDBContext _Context { get; set; }

        public PayInfoRepository(ApiDBContext dBContext):base(dBContext)
        {
            _Context = dBContext ?? throw new ArgumentNullException(nameof(dBContext));
        }



        public PayInfo? GetById(Guid id)
        {
            return _Context.PayInfo.FirstOrDefault(s => s.Id == id);
        }
    }


}
